﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.CustomerVMs
{
    public partial class CustomerBatchVM : BaseBatchVM<Customer, Customer_BatchEdit>
    {
        public CustomerBatchVM()
        {
            ListVM = new CustomerListVM();
            LinkedVM = new Customer_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Customer_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._Customer._CustomerName")]
        public string CustomerName { get; set; }
        [Display(Name = "_Model._Customer._ContactPerson")]
        public string ContactPerson { get; set; }
        [Display(Name = "_Model._Customer._PhoneNumber")]
        public string PhoneNumber { get; set; }
        [Display(Name = "_Model._Customer._Email")]
        public string Email { get; set; }
        [Display(Name = "_Model._Customer._Faxing")]
        public string Faxing { get; set; }
        [Display(Name = "_Model._Customer._BeginCollect")]
        public decimal? BeginCollect { get; set; }
        [Display(Name = "_Model._Customer._EndCollect")]
        public decimal? EndCollect { get; set; }
        [Display(Name = "_Model._Customer._TaxtRate")]
        public decimal? TaxtRate { get; set; }
        [Display(Name = "_Model._Customer._Remark")]
        public string Remark { get; set; }
        [Display(Name = "_Model._Customer._Address")]
        public string Address { get; set; }
        [Display(Name = "_Model._Customer._Bank")]
        public string Bank { get; set; }
        [Display(Name = "_Model._Customer._TaxpayerNumber")]
        public string TaxpayerNumber { get; set; }
        [Display(Name = "_Model._Customer._BankAccount")]
        public string BankAccount { get; set; }
        [Display(Name = "_Model._Customer._LandlinePhone")]
        public string LandlinePhone { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}